pkgname=bust-shm-exit
pkgver=git
pkgrel=0
pkgdesc="bust-shm-exit benchmark source for LKP-tests "
arch=('i386' 'x86_64')
url="https://github.com/gaowanlong/bust_shm_exit"
license=('GPL')
source=("https://github.com/gaowanlong/bust_shm_exit.git")
md5sums=('SKIP')

build() {
	cd "$srcdir/bust_shm_exit"
	gcc -O2 -o bust_shm_exit bust_shm_exit.c -lpthread
}

package() {
	mkdir -p "$pkgdir/lkp/benchmarks/$pkgname"
	cp -r "$srcdir/bust_shm_exit/bust_shm_exit" "$pkgdir/lkp/benchmarks/$pkgname"
}
